package com.zpl.mq.consumer.constant;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/9/7 19:03
 */
public enum ConsumerRespCode {
    
    RPC_INIT_FAILED("C00001", "消费者启动失败"),
    SUBSCRIBE_FAILED("C00002", "消费者注册失败"),
    UN_SUBSCRIBE_FAILED("C00003", "消费者注销失败"),
    CONSUMER_STATUS_ACK_FAILED("C00004", "消费者状态回复失败"),
    CONSUMER_STATUS_ACK_BATCH_FAILED("C00005", "消费者状态批量回复失败")
    ;

    private final String code;
    private final String msg;
    
    ConsumerRespCode(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
